<template>
	<view class="container">
		<view class="status-head">
			<image class="icon" :src="statusData[status].icon" mode="aspectFit"></image>
			<view class="title">{{ statusData[status].title }}</view>
			<text class="info">{{ statusData[status].info }}</text>
		</view>
		<view class="status-tool" v-if="status==0">
			<view class="button">
				<u-button :custom-style="wd_button_plain" shape="circle" :ripple="true" :plain="true">重新预约</u-button>
			</view>
		</view>
		<view class="status-tool" v-else>
			<view class="button">
				<u-button :custom-style="wd_button_primary" shape="circle" :ripple="true">查看我的预约</u-button>
			</view>
			<view class="button">
				<u-button :custom-style="wd_button_plain" shape="circle" :ripple="true" :plain="true">返回继续预约</u-button>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				status: 0, //0预约失败,1预约成功,2预约已排队后补,3申请提交成功
				statusData: [
					{
						icon: '../../../static/icons/icon_status-error.png',
						title: '抱歉，预约失败！',
						info: '课程费用未扣除',
					},
					{
						icon: '../../../static/icons/icon_status-success.png',
						title: '恭喜，预约成功！',
						info: '课程费用已扣除',
					},
					{
						icon: '../../../static/icons/icon_status-success.png',
						title: '预约已排队后补',
						info: '课程费用已扣除\n预约成功将会消息通知您，若失败将会退回课程费用',
					},
					{
						icon: '../../../static/icons/icon_status-success.png',
						title: '申请提交成功',
						info: '请耐心等待，审核通过后将会发消息通知你',
					}
				]
			}
		},
		methods: {
		}
	}
</script>

<style lang="scss" scoped>
	.container {
		padding: 100rpx 0;
		min-height: 100vh;
		background-color: #FFFFFF;
	}
	.status-head {
		padding: 45rpx 90rpx;
		text-align: center;
		
		.icon {
			display: block;
			margin: 50rpx auto 0;
			width: 100rpx;
			height: 100rpx;
		}
		.title {
			margin-top: 30rpx;
			font-size: 32rpx;
			color: #333333;
		}
		.info {
			display: block;
			margin-top: 10rpx;
			font-size: 24rpx;
			color: #666666;
		}
	}
	.status-tool {
		padding: 45rpx 150rpx;
		
		.button {
			margin-bottom: 30rpx;
		}
	}
</style>